package com.fmy.jurisdiction.modular.model;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色权限表 
 * </p>
 *
 * @author Mr.fmy
 * @since 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminRolePerm implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 角色ID
     */
    private Integer roleId;

    /**
     * 权限ID
     */
    private Integer permissionId;


    public static final String ROLE_ID = "role_id";

    public static final String PERMISSION_ID = "permission_id";

    public static final String ROLEID_FIELD = "roleId";

    public static final String PERMISSIONID_FIELD = "permissionId";

    public AdminRolePerm(Integer roleId, Integer permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

    public AdminRolePerm() {
    }
}
